//
//  FPDetainmentPopupView.m
//  FinanceProject
//
//  Created by 陈显摆 on 2025/4/30.
//

#import "FPDetainmentPopupView.h"

@implementation FPDetainmentPopupView

- (void)awakeFromNib {
    
    [super awakeFromNib];
    
    self.backgroundColor = UIColor.clearColor;
    
    self.titleLab.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.contentLab.textColor = [UIColor hexColor:@"#6A6A6A"];
    
    [self.btn2 setTitleColor:[UIColor hexColor:@"#9A9A9A"] forState:(UIControlStateNormal)];
    [self.btn1 setTitleColor:[UIColor whiteColor] forState:(UIControlStateNormal)];
    self.btn1.clipsToBounds = YES;
    self.btn1.layer.cornerRadius = 22.f;
    self.btn1.backgroundColor = MAIN_BLUE_COLOR;
}

- (void)setDetainmentTitleString:(NSString *)detainmentTitleString {
    
    _detainmentTitleString = detainmentTitleString;
    self.titleLab.text = detainmentTitleString;
}

- (void)setDetainmentContentString:(NSString *)detainmentContentString {
    
    _detainmentContentString = detainmentContentString;
    self.contentLab.text = detainmentContentString;
}

- (void)setDetainmentBtn1String:(NSString *)detainmentBtn1String {
    
    _detainmentBtn1String = detainmentBtn1String;
    [self.btn2 setTitle:detainmentBtn1String forState:(UIControlStateNormal)];
}

- (void)setDetainmentBtn2String:(NSString *)detainmentBtn2String {
    
    _detainmentBtn2String = detainmentBtn2String;
    [self.btn1 setTitle:detainmentBtn2String forState:(UIControlStateNormal)];
}


@end
